public class Main {

    public static void main(String[] args) {
        int a = 80;
        zhiYinShu(a);
    }

    public static void zhiYinShu(int num) {
        if (num < 2) {
            throw new RuntimeException("没有质因数");
        }
        for (int i = 2; i <= num; i++) { // 因数
            while (num % i == 0) { // 能被整除
                System.out.print(i + "\t");

                num /= i;
            }
        }
    }
}